gtk/gtkcellrenderertext.c changed "weight" property type from
authorMikael Hermansson <mikeher@src.gnome.org>
Sun, 30 Sep 2001 04:41:59 +0000 (04:41 +0000)
committerMikael Hermansson <mikeher@src.gnome.org>
Sun, 30 Sep 2001 04:41:59 +0000 (04:41 +0000)
* gtk/gtkcellrenderertext.c changed "weight" property type from
  g_param_spec_int to g_param_spec_enum.

gtk/gtkcellrenderertext.c

index 5f7e9626c99b2492929e0586ecf5dd11d520aaa4..7939998405d2eca6cdb44d6b54da2f99bd01188a 100644 (file)
@@ -277,11 +277,10 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
   
   g_object_class_install_property (object_class,
                                    PROP_WEIGHT,
-                                   g_param_spec_int ("weight",
+                                   g_param_spec_enum ("weight",
                                                      _("Font weight"),
                                                      _("Font weight"),
-                                                     0,
-                                                     G_MAXINT,
+                                                     PANGO_TYPE_WEIGHT,
                                                      PANGO_WEIGHT_NORMAL,
                                                      G_PARAM_READABLE | G_PARAM_WRITABLE));